package com.item.demo.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
/**
 * "userId": {String 类型，用户标识，以 UUID 表示，创建新用户时无此字段},
 * "userType": 0,
 * "identifyField": {String 类型，身份标识字段名，表示以哪个字段确定用
 * 户身份},
 * "personalName": {String 类型，姓名},
 * "idCardNum": {String 类型，居民身份证号码},
 * "passportNum": {String 类型，护照号码},
 * "mtpNum": {String 类型，港澳居民来往内地通行证号码},
 * "customUserId": {String 类型，业务系统内部 id},
 * "mobile": {String 类型，手机号},
 * "clientSignCert": {String 类型，可选字段，以 BASE64 编码的客户端数字
 * 证书},
 * "autoCert": {Boolean 类型，是否自动生成证书}
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Api(tags = "用户实体类")
public class Users {
    @ApiModelProperty(value = "用户id")
    private Integer userId;
    @ApiModelProperty(value = "用户id")
    private int userType=0;
    @ApiModelProperty(value = "身份标识字段名")
    private String identifyField;
    @ApiModelProperty(value = "姓名")
    private String personalName;
    @ApiModelProperty(value = "居民身份证号码")
    private String idCardNum;
    @ApiModelProperty(value = "护照号码")
    private String passportNum;
    @ApiModelProperty(value = "港澳居民来往内地通行证号码 ")
    private String mtpNum;
    @ApiModelProperty(value = "用户地址")
    private String customUserId;
    @ApiModelProperty(value = "手机号")
    private String mobile;
    @ApiModelProperty(value = "可选字段，以 BASE64 编码的客户端数字")
    private String clientSignCert;
    @ApiModelProperty(value = "是否自动生成证书")
    private boolean autoCert;
}
